import Vue from 'vue'
import Router from 'vue-router'
import admin from '@/backstage/admin.vue'
// import writeblog from '@/backstage/main/writeBlog.vue'
// import modifyBlog from '@/backstage/main/modifyBlog.vue'
// import draft from '@/backstage/main/draft.vue'
import home from '@/views/home.vue'
import detail from '@/views/detail.vue'
import login from '@/components/login.vue'
import test from '@/views/test.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: home
    },
    {
      path:"/admin",
      component:admin,
      children:[
        // {
        //   path:'/admin/writeblog',
        //   component:writeblog
        // },
        // {
        //   path:'/admin/draft',
        //   component:draft
        // },
        // {
        //   path:'/admin/modifyblog',
        //   component:modifyBlog
        // },
      ]
    },
    {
      path: '/detail/login',
      component: login
    },
    {
      path: '/detail',
      component: detail
    },
    {
      path: '/test',
      component: test
    },
  ]
})
